package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Page;
import com.nbsaas.boot.cms.api.domain.request.PageRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 页面请求对象转换成实体对象
*/

public class PageEntityConvert  implements Converter<Page, PageRequest> {

    @Override
    public Page convert(PageRequest source) {
        Page result = new Page();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

